import Request from '@/axios/request'

export function getGameGames(params) {
  return Request.get('game/games', { params })
}

export function createGameGames() {
  return Request.get('game/games/create')
}

export function storeGameGames(data) {
  return Request.post('game/games', data)
}

export function updateGameGames(id, data) {
  return Request.put(`game/games/${id}`, data)
}

export function editGameGames(id) {
  return Request.get(`game/games/${id}/edit`)
}

export function destroyGameGames(id) {
  return Request.delete(`game/games/${id}`)
}

export function getGroups() {
  return Request.get('getGroups')
}

export function update(id, data) {
  return Request.put(`addPayBackUrl/${id}`, data)
}

export function getEditList(id) {
  return Request.get(`getEditList/${id}`)
}
export function upload(id) {
  return Request.post(`iconUpload/${id}`)
}
export function updateGame(id, data) {
  return Request.post(`updateGame/${id}`, data)
}
export function getGameParams(id) {
  return Request.get(`getGameParams/${id}`)
}
export function opreateData(data) {
  return Request.post(`opreate`, data)
}
